import java.util.*;
public class Practice2 {
    //https://www.nowcoder.com/questionTerminal/bb4f1a23dbb84fd7b77be1fbe9eaaf32
    //乒乓球筐
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            //将A放入到hash表中, 然后减去B中的数值, 出现负数就说明无法满足
            char[] ss1 = sc.next().toCharArray();
            char[] ss2 = sc.next().toCharArray();
            int[] hash = new int[26];
            for (int i = 0; i < ss1.length; i++) {
                char s = ss1[i];
                hash[s - 'A']++;
            }
            for (int i = 0; i < ss2.length; i++) {
                char s = ss2[i];
                hash[s - 'A']--;
            }
            boolean flag = true;
            for (int i = 0; i < 26; i++) {
                if(hash[i] < 0){
                    flag = false;
                    System.out.println("No");
                    break;
                }
            }
            if(flag){
                System.out.println("Yes");
            }
        }
    }
}
